package com.demon.auto.controller;

import com.demon.auto.model.ApiResponseModel;
import com.demon.auto.model.entity.SignRecordEntity;
import com.demon.auto.model.vo.PageVo;
import com.demon.auto.model.vo.SignRecordVo;
import com.demon.auto.service.SignRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 签到记录
 *
 * @version 1.0
 * @author huangrz
 * @date 2025/02/21 11:31
 */
@RestController
@RequestMapping("/api/signRecord")
public class SignRecordController {

    @Autowired
    private SignRecordService service;

    @RequestMapping("/queryByCondition")
    public ApiResponseModel<PageVo<SignRecordEntity>> queryByCondition(@RequestBody SignRecordVo condition) {
        return ApiResponseModel.ok("查询客户端签到记录成功", service.queryByPage(condition));
    }

}